package com.yehuishou.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yehuishou.dao.SearchDao;
import com.yehuishou.pojo.BackItem;
import com.yehuishou.pojo.Brand;
import com.yehuishou.pojo.Classify;
import com.yehuishou.service.SearchService;

@Service
public class SearchServiceImpl implements SearchService {
	@Resource
	private SearchDao searchdao;

	@Override
	public Map<String, Object> backitemsearch(String bname) {
		// TODO Auto-generated method stub
		Map<String, Object> map=new HashMap<>();
		List<BackItem> backitem=searchdao.selbackitem(bname);
		List<Classify> classify=searchdao.selclassify();
		List<Brand> Brand = searchdao.selbrand();
		map.put("backitem", backitem);
		map.put("classify", classify);
		map.put("Brand", Brand);
		return map;
	}
}
